from django.contrib import admin
from peliculas.models import Movie, Genre, Director, Actor, Score, PurchaseOption, Historial, Biblioteca, Usuario
from peliculas.models import PosiblesEmails
# Register your models here.

class ScoreInline(admin.StackedInline):
   model = Score

class PurchaseOptionInline(admin.StackedInline):
   model = PurchaseOption

# Define a new User admin
class MovieAdmin(admin.ModelAdmin):
   inlines = (ScoreInline, PurchaseOptionInline, )

admin.site.register(Movie, MovieAdmin)
admin.site.register(Genre)
admin.site.register(Director)
admin.site.register(Actor)
admin.site.register(Historial)
admin.site.register(Biblioteca)
admin.site.register(Usuario)
admin.site.register(PosiblesEmails)